package Logic;
/**
 * The Account Class holds objects of the type Account.
 * Whenever an Account object is needed, the Account class is used to contain all information relevant to the Account in question.
 * The class is also used to fetch specific information, such as the last name or balance of a user object.
 *
 */

public class Account {
	
	private String email;
	private int id;
	private double balance;
	private String firstname;
	private String lastname;
	private boolean admin;
	private boolean deactivated;

	public Account(String emailarg, int idarg, double balancearg,
			String firstnamearg, String lastnamearg, boolean adminarg, boolean statusarg) {
		email = emailarg;
		id = idarg;
		balance = balancearg;
		firstname = firstnamearg;
		lastname = lastnamearg;
		admin = adminarg;
		deactivated = statusarg;
	}

	public final String getEmail() {
		return email;
	}

	public final void setEmail(String email) {
		this.email = email;
	}

	public final int getId() {
		return id;
	}

	public final double getBalance() {
		return balance;
	}

	public final void setBalance(double balance) {
		this.balance = balance;
	}

	public final String getFirstname() {
		return firstname;
	}

	public final void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public final String getLastname() {
		return lastname;
	}

	public final void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public final boolean isAdmin() {
		return admin;
	}
	
	public final boolean isDeactivated() {
		return deactivated;
	}

	public final void setAdmin(boolean admin) {
		this.admin = admin;
	}
}